# run:
# python tornado-test.py
           
import tornado.ioloop
import tornado.web
import time
           
class MainHandler(tornado.web.RequestHandler):
    def get(self):
        time.sleep(1)
        self.write("Hello world.")
           
application = tornado.web.Application([
    (r"/", MainHandler),
])
           
if __name__ == "__main__":
    application.listen(9090)
    tornado.ioloop.IOLoop.instance().start()
